/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.elcom.dailyexpress.mongodbdao;

import com.elcom.emocbc.mongodb.Bsc;
import com.google.code.morphia.Datastore;
import com.google.code.morphia.dao.BasicDAO;
import com.google.code.morphia.query.Query;
import java.util.List;
import org.bson.types.ObjectId;

/**
 *
 * @author GiangLT
 */
public class BscDao extends BasicDAO<Bsc, ObjectId> {

    public BscDao(Datastore ds) {
        super(ds);
    }
    
    public List<Bsc> findBscsFromList(Iterable<String> bscId){
        Query<Bsc> query = ds.createQuery(Bsc.class);
        return query.field("bscId").in(bscId).asList();
    }
}
